#include<bits/stdc++.h>
#include<string>
#include<cstdio>
#include<cctype>
#include<conio.h>
#include<Windows.h>
#include<string>
#include"头文件/minecraft.h"
#include"头文件/flyfly.h"
#include"头文件/Greedy snake.h"
#include"头文件/Mathematical Adventure.h"
#include"头文件/ecry.h"
#include"头文件/jsq.h"
#include"头文件/日历.h"
#include"头文件/adyzj.h"
#define length  6
using namespace std;
#define PI 3.1415926
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )
string nasd;
string text1[60000],text2[60000];
char in1[99999];
int w1,ne=0,pe=0,open2=0,b,ip1,loadn[10],title=0,nd,pd,say=0,iuse,inn,cont,rows1,rows2;
char va[20],nowin[20]={"Y"},ping[17],ad[]="hmnsf",adp[]="qtajhmnsf",inname[]="-Tool",innp[3],yin,adz[50],bdl=0;
int load,oicmd;
char tmp[64],opensystemtime[64],tme[64];										//定义变量
int main()											//主函数 
{
	
	system("title Y_tools");
	time_t t=time(0);
	srand((unsigned)time(NULL)); 
	strftime(tme,sizeof(tme),"%m/%d",localtime(&t));//时钟初始化
	char tmp[64];
	strftime(opensystemtime, sizeof(tmp), "%Y/%m/%d %X %A %j %z", localtime(&t));
	if(strcmp(tme,"12/25")==0)
	{
		say=1;
	}
	else if(strcmp(tme,"09/21")==0)
	{
		say=2;
	}
	else if(strcmp(tme,"10/14")==0)
	{
		say=3;
	}
	else if(strcmp(tme,"10/01")==0&&strcmp(tme,"10/02")==0&&strcmp(tme,"10/03")==0&&strcmp(tme,"10/04")==0&&strcmp(tme,"10/05")==0&&strcmp(tme,"10/06")==0&&strcmp(tme,"10/07")==0)
	{
		say=4;
	}
	else if(strcmp(tme,"07/01")==0)
	{
		say=6;
	}
	else if(strcmp(tme,"06/14")==0)
	{
		say=7;
	}
	else if(strcmp(tme,"05/01")==0)
	{
		say=8;
	}
	else if(strcmp(tme,"04/04")==0)
	{
		say=10;
	}
	else if(strcmp(tme,"02/12")==0)
	{
		say=12;
	}
	else if(strcmp(tme,"01/01")==0)
	{
		say=13;
	}										//语音助手祝福语 
	/*cout<<"user name?"<<endl;
	cin>>usname;
	cout<<"password?"<<endl;
	cin>>password;
	cout<<"User level?(administrators=a,user=u,visitor=v)"<<endl;
	cin>>userlevel;
	MessageBox(0,TEXT("Your CMD is in place!You can use it!"),TEXT("china cmd"),0);
	system("cls");*/					//Setup complet
	/*pass:
	if(strcmp(inname,ad)==0)
	{
		cout<<"what is 'qtaj'?"<<endl;
	}
	cout<<"password?"<<endl;
	cin>>inpass;
	system("cls");
	cout<<"name?"<<endl<<"password?"<<endl;
	if(strcmp(inpass,password)==0)
	{
		
	}
	else
	{
		if(strcmp(inpass,adp)==0)
		{
			
		}
		else
		{
			if(strcmp(inpass,password1)==0)
			{
			
			}
			else
			{
				if(strcmp(inpass,password2)==0)
				{
			
				}
				else
				{
					if(pe>=5)
					{
						cout<<"You've been wrong too many times and will be locked for 1 minute!";
						Sleep(60000);
						pe=0;
						goto pass;
					}
					cout<<"error!"<<endl;
					pe++;
					goto pass;	
				}
			}
		}
	}*/
	system("title Y:Y Tools 1.4");
	cls:
	system("cls");					//Authentication interface
	cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
	cout<<setw(50)<<"|-----------欢迎使用 Y Tools 1.4 工具箱。-----------|"<<endl;
	cout<<setw(50)<<"|-------------本工具箱由Y开发。---------------------|"<<endl;
	cout<<setw(50)<<"|---------输入help或？或帮助以打开帮助---------------|"<<endl;
	cout<<setw(50)<<"|-----------------本工具箱持续更新中。---------------|"<<endl;
	cout<<setw(50)<<"|-------------------代码托管地址如下-----------------|"<<endl;
	cout<<setw(50)<<"|------https://gitee.com/yu-tiancheng/yu_tools-----|"<<endl;
	cout<<setw(50)<<"|-------------------键入exit退出--------------------|"<<endl;
	cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
	b=100;
	for(w1=1;w1<=b;w1++)
	{
		b=b++;
		kool:
		cout<<nowin<<inname<<">";
		cin>>in1;
		if(strcmp(in1,"exit")==0||strcmp(in1,"q")==0||strcmp(in1,"quit")==0||strcmp(in1,"退出")==0)
		{
			iuse=1;
		}
		else if(strcmp(in1,"va")==0||strcmp(in1,"语音助手")==0)
		{
			iuse=2;
		}
		else if(strcmp(in1,"calendar")==0||strcmp(in1,"日历")==0)
		{
			iuse=3;
		}
		else if(strcmp(in1,"calculationtool")==0||strcmp(in1,"catool")==0||strcmp(in1,"t")==0||strcmp(in1,"计算工具")==0)
		{
			iuse=4;
		}
		else if(strcmp(in1,"encryptiontool")==0||strcmp(in1,"enctool")==0||strcmp(in1,"m")==0||strcmp(in1,"加密系统")==0)
		{
			iuse=5;
		}
		else if(strcmp(in1,"help")==0||strcmp(in1,"?")==0||strcmp(in1,"帮助")==0)
		{
			iuse=6;
		}
		else if(strcmp(in1,"cmd")==0)
		{
			iuse=7;
		}
		else if(strcmp(in1,"time")==0||strcmp(in1,"n")==0||strcmp(in1,"现在时间")==0)
		{
			iuse=8;
		}
		else if(strcmp(in1,adz)==0||strcmp(in1,"zd")==0||strcmp(in1,"z")==0||strcmp(in1,"自定义函数")==0)
		{
			iuse=9;
		}
		else if(strcmp(in1,"dl")==0)
		{
			iuse=10;
		}
		else if(strcmp(in1,"text")==0||strcmp(in1,"v")==0||strcmp(in1,"文档")==0)
		{
			iuse=11;
		}
		else if(strcmp(in1,"cls")==0)
		{
			iuse=12;
		}
		else if(strcmp(in1,"shutdown-s")==0)
		{
			iuse=13;
		}
		else if(strcmp(in1,"shutdown-a")==0)
		{
			iuse=14;
		}
		else if(strcmp(in1,"shutdown-l")==0)
		{
			iuse=15;
		}
		else if(strcmp(in1,"shutdown-i")==0)
		{
			iuse=16;
		}
		else if(strcmp(in1,"game")==0||strcmp(in1,"游戏")==0)
		{
			iuse=17;
		}
		else if(strcmp(in1,"/back")==0)
		{
			iuse=18;
		}
		else iuse=0;								//识别输入 
		switch(iuse)
		{
			case 1: 				//退出
			{
					cout<<"你确定要退出吗？输入'q'退出.输入其他字母则退出."<<endl;
					char quit;
					cin>>quit;
					switch(quit)
					{
						case 81: 
						{
							ret:
							freopen("Y Tools.rz","w",stdout);
							//time_t t=time(0);
							char tmp[64];
							strftime(tmp, sizeof(tmp), "%Y/%m/%d %X %A %j %z", localtime(&t));
							cout<<nasd<<tmp<<tmp<<"	正常关机";
							freopen("text1.txt","w",stdout);
							for(int i=1;i<=rows1;i++)
							{
								cout<<text1[i]<<endl;
							}
							freopen("text2.txt","w",stdout);
							for(int i=1;i<=rows2;i++)
							{
								cout<<text2[i]<<endl;
							}
							return 0;
						}
						case 113:
						{
							freopen("Y Tools.rz","w",stdout);
							//time_t t=time(0);
							char tmp[64];
							strftime(tmp, sizeof(tmp), "%Y/%m/%d %X %A %j %z", localtime(&t));
							cout<<nasd<<tmp<<"	正常关机";
							freopen("text1.txt","w",stdout);
							for(int i=1;i<=rows1;i++)
							{
								cout<<text1[i]<<endl;
							}
							freopen("text2.txt","w",stdout);
							for(int i=1;i<=rows2;i++)
							{
								cout<<text2[i]<<endl;
							}
							return 0;
						}
						default:
							break; 
					}
					break;
				}
			case 2:		
			{				//语音助手
				if(bdl==9)
				{
					int vaf,vaw=100;
					cout<<"你好,我是你的语音助手,你可以叫我'va'.我可以帮助你吗？"<<endl;
					switch(say)
					{
						case 1:
							cout<<"圣诞树.上耀眼的彩灯,祈祷你平安一生;圣诞夜里悠扬的钟声, 祝福你快乐一生日光从指间流徒, 雪花随铃声飘落。"<<endl;break;
						case 2:
							cout<<"花好月圆日,中秋喜相逢;明月寓团圆,祝福寄友朋:愿生活如圆月,梦想皆达成,幸福明月光,伴你天下行!中秋快乐!"<<endl;break;
						case 3:
							cout<<"黄菊绮风村酒醇,紫门临水稻花香!天高气爽,人寿花香!重阳节快乐!"<<endl;break;
						case 4:
							cout<<"没有国,哪有家;没有家,哪有你我。让我们共同祝愿国兴家和!"<<endl;break;
						case 6:
							cout<<"我们会缅怀过去,牢记先辈沉甸甸的嘱托;我们会面向未来,为党续写新的一页,祝党生日快乐!"<<endl;break;
						case 7:
							cout<<"五月初五是端午,朋友祝福已上路。财神运财走水路,福神空降最神速。喜神报喜上大路,惊喜连连在端午。爱神变出浪漫屋,幸运之神心中驻！"<<endl;break;
						case 8:
							cout<<"轻松面对新的一天,抛弃昨日的烦恼,让新一天的生活充满笑容,让生命之花永远灿烂,让心灵的朝阳永远明媚,让幸福快乐永伴你身边。"<<endl;break;
						case 10:
							cout<<"月时节雨纷飞,思念的泪儿流淌,烦恼忧愁在放飞。"<<endl;break;
						case 12:
							cout<<"一年的希望,一年的期待,一年的努力,一年的拚搏,一年的奋斗,一年的收获,一年的幸福,从今年的春节开始!祝春节快乐!"<<endl;break;
						case 13:
							cout<<"元旦转瞬到眼前,提早给你拜个年,祝你风风火火招财年,"<<endl;break;
					}
					vaw=vaf+1;
					cin>>va;
					if(strcmp(va,"?")==0)
					{
						cout<<"我可以为你做很多事情，比如和你聊天等等。"<<endl;
					}
					else if(strcmp(va,"聊天")==0)
					{
						cout<<"好啊"<<endl;
					}
					else if(strcmp(va,"现在时间")==0)
					{
						time_t t = time(0);
						strftime(tmp, sizeof(tmp), "%Y/%m/%d %X %A %j %z", localtime(&t));
						cout << tmp << endl;
					}
					else if(strcmp(va,"va")==0)
					{
						cout<<"我在这里。"<<endl;
					}
					else if(strcmp(va,"quit")==0)
					{
						
					}
					else if(strcmp(va,"shutdown")==0)
					{
						system("shutdown -s -t 60");
						cout<<"ok!"<<endl;
					}
					else if(strcmp(va,"shutdown-a")==0||strcmp(va,"结束关机")==0)
					{
						system("shutdown -s -a");
						cout<<"ok!"<<endl;
					}
					else cout<<"我不明白。"<<endl;
				}
				break;
			}
			case 3:
			{
				rili();
				break;
			} 
			case 4:				//computing equipment(t)
			{
					char jg;
					cout<<"计算工具编号为："<<endl;
					cin>>jg;
					switch(jg){
						case 'y':
						{
							double a,r,c,s,ce,biao,ti;
							cout<<"请输入底部圆的半径："<<endl;
							cin>>r;
							cout<<"请输入圆柱的高度："<<endl;
							cin>>a;
							c=2*PI*r;
							s=PI*r*r;
							ce=c*a;
							biao=ce+s*2;
							ti=s*a;
							cout<<"侧面积："<<ce<<"	表面积："<<biao<<"	体积："<<ti<<endl;
							break;
						}
						case 'q':
						{
							double r,v,s;
							cout<<"请输入球体的半径："<<endl;
							cin>>r;
							v=4.0/3*PI*r*r*r;
							s=4*PI*r*r*r;
							cout<<"球体体积：	"<<v<<"面积是："<<s<<endl;
							break;
						}
						case 'z':
						{
							double l,r,v,s,h;
							cout<<"请输入母线长度："<<endl;
							cin>>l;
							cout<<"请输入底部半径："<<endl;
							cin>>r;
							h=sqrt((l*l)-(r*r));
							s=PI*r*l;
							v=(PI*r*r*h)/3;
							cout<<"表面积："<<s<<"	体积："<<v<<endl;
							break;
						}
						case 's':							
						{
							double a,b,c,p,s;
							cout<<"请输入三角形三条边的长度："<<endl;
							cin>>a>>b>>c;
							p=(a+b+c)/2;
							s=sqrt(p*(p-a)*(p-b)*(p-c));
							cout<<"三角形面积为："<<s<<endl;
							break;
						}
						case 'e':{					
							double r,c,s;
							cout<<"请输入圆半径："<<endl;
							cin>>r;
							c=2*PI*r;
							s=PI*r*r;
							cout<<"周长：	"<<c<<"     	面积：	"<<s<<endl;
							break;
						}
						case 106:			//Calculator(j)
						{
							char c;
						    char exp[maxsize];
						    char postexp[maxsize]={0};
						    menu();
						    while (1)
						    {
						        cin>>c;
						        switch (c)
						        {
							        case 'a':
								    	sr:
								    	cout<<"请输入要计算的表达式:\n";
							           CreateExpression(exp);
							           if (!Error(exp))
							           {
							               TransmitExpression(exp, postexp);
							               printf("后缀表达式为：%s\n", postexp);
							               printf("表达式结果为：%s=", exp);
							               printf("%g\n", EvaluateExpression(postexp));
							               break;
							           }
							           else
							           if (Error(exp))
							           {
							               cout<<"您输入的表达式有误！\n";
							               goto sr;
							           }
							        case'b':
							            clear();
							            break;
							        case'c':
							        {
							            goto kool;
										break;
									}
						        }
						    }
						    system("pause");
							break;
						} 
						default:
							cout<<"'"<<jg<<"'"<<"不是内部或外部命令!"<<endl;
					}
				break;
			}
			case 5:				//encryption tool(m)
			{
					int et,mf,mw=100;
					for(mf=1;mf<=mw;mf++)
					{
					mw=mw++;
					cout<<"欢迎使用Y Tools--加解密系统。"<<endl;
					char str[100],es1;
					int model,numB;
					cin>>es1;
					switch(es1)
					{
						case 'j': 			//encryption(j)
						{
							cout<<"请输入要加密的字符串:";
	                        cin>>str;
	                        cout<<"请输入该密码算法的偏移数量：";
	                        cin>>numB;
							Encry(str,numB);
							break;
						}
						case '?':			//details(?)
						{
							cout<<"这个工具基于凯撒加密法。"<<endl;
							break;
						}
						case 'q':		//quit(q)
							mf=mw+2;break;
						case 'm':		//details(m)
							{
								cout<<"请输入要解密的字符串:";
	                            cin>>str;
	                            cout<<"请输入原密码算法的偏移数量：";
	                            cin>>numB;
								Decry(str,numB);
								break;
							}
						default:
							cout<<"'"<<es1<<"'"<<"不是内部或外部命令!"<<endl;
						}
					}
					break;
			}
			case 6:
			{
				cout<<"q or exit---退出"<<endl<<"n or time---现在时间"<<endl<<"calendar---日历"<<endl;
				cout<<"t or catool---计算工具"<<endl<<"v or text---文档"<<endl<<"game---小游戏"<<endl<<"encryptiontool,enctool or m---加密系统"<<endl;
				cout<<"shutdown-s"<<endl<<"shutdown-a"<<endl<<"shutdown-l"<<endl<<"shutdown-i"<<endl<<"cmd---控制台"<<endl;
				if(bdl==2)
					cout<<"zd or z---自定义函数"<<endl;
				if(bdl==9)
					cout<<"va---语音助手"<<endl;
				cout<<"在'计算工具',你可以输入 s---三角型计算工具,y---圆柱计算工具,e---圆计算工具,q---球计算工具,z---圆锥计算工具,j---计算器"<<endl;
				cout<<"在'加密系统',你可以输入 j---加密,m---解密,?---帮助,q---退出"<<endl;
				cout<<"在'文档',你可以像使用windows文本一样使用它。（储存的文档会在'text'.txt中储存）"<<endl;
				break;
			}
			case 7:
			{
				system("cmd");
				break;
			}
			case 8:				//now time(n)
			{
				time_t t=time(0);
			    char tmp[64];
			    strftime(tmp,sizeof(tmp),"%Y/%m/%d %X %A %j %z",localtime(&t));
			    cout<<tmp<<endl;
			    break;
			}
			case 9:				//adyzj
			{
				if(bdl==3||bdl==9)
				{
					int i;
					cout<<"模式？（1.组件执行重命名 2.运行组件 3.退出）"<<endl; 
					cin>>i;
					switch(i)
					{
						case 1:
						{
							cin>>adz;
							break;
						}
						case 2:
						{
							adyzj();
							break;
						}
						case 3:
						{
							break;
						}
						default:
						{
							cout<<"没有"<<i<<"这个选项！"<<endl;
							break;
						}
					}
				}
				else
					cout<<"'"<<in1<<"'"<<"不是内部或外部命令!"<<endl;
			    break;
			}
			case 10:
			{
				char dl[23];
				cin>>dl;
				if(strcmp(dl,"kcjnk-hngJH-ki86p-skkko"));
					if(bdl!=1)
						bdl=1;
					else
						bdl=0;
				if(strcmp(dl,"k34nk-h32JH-ki86p-s44ko"));
					if(bdl!=3)
						bdl=3;
					else
						bdl=0;
				if(strcmp(dl,"k3_5k-h3KIH-u=9kp-s4kio"));
					if(bdl!=9)
						bdl=9;
					else
						bdl=0;
				break;
			}
			case 11:		//text(v)
			{
				int text,rd1,rd2;
				char modt;
				cout<<"模式?(read---r,write---w) "<<endl;
				cin>>modt;
				if(modt=='w')
				{
					cout<<"哪个存储槽?"<<endl;
					cin>>text;
					switch(text)
					{
						case 1:
						{
							cout<<"行数？"<<endl;
							cin>>rows1;
							cout<<"现在位于第1个存储位中："<<endl<<endl<<endl;
							rd1=1;
							getline(cin,text1[0]);
							for(int i=1;i<=rows1;i++)
							{
								getline(cin,text1[i]);
							}
							cout<<"ok!"<<endl;
							break;
						}
						case 2:
						{
							cout<<"行数？"<<endl;
							cin>>rows2;
							cout<<"现在位于第2个存储位中："<<endl<<endl<<endl;
							rd2=1;
							getline(cin,text2[0]);
							for(int i=1;i<=rows2;i++)
							{
								getline(cin,text2[i]);
							}
							cout<<"ok!"<<endl;
							break;
						}
						default:
							cout<<"只有两个！";break;
					}
				}
				else if(modt=='r')
				{
					cout<<"哪个存储位？"<<endl;
					cin>>text;
					switch(text)
					{
						case 1:
						{
							if(rd1==1)
							{
								for(int i=1;i<=rows1;i++)
								{
									cout<<text1[i]<<endl;
								}
							}
							else
								cout<<"什么都没有！"<<endl;
								break;
						}
						case 2:
						{
							if(rd2==1)
							{
								for(int i=1;i<=rows2;i++)
								{
									cout<<text2[i]<<endl;
								}
							}
							else
								cout<<"什么都没有！"<<endl;
							break;
						}
						default:
							cout<<"只有两个！";break;
					}
				}
				break;
			}
			case 12: 				
			{
				goto cls;break;
			}
			case 13:
			{
				system("shutdown -s -t 60");break; 
			}
			case 14:
			{
				system("shutdown -a");break; 
			}
			case 15:
			{
				system("shutdown -l");;break; 
			} 
			case 16:
			{
				system("shutdown -i");;break; 
			}
			case 17:
			{
				int g1;
				cout<<"哪个游戏?(1.飞机大战 2.贪吃蛇 3.我的世界 4.数学大冒险)";
				cin>>g1;
				switch(g1)
				{
					case 1:
					{
						system("cls");
						HideCursor();
						Game game;
						int a = drawMenu();
						if(a == 2)
						game.rank = 20;
						system("cls");
						drawPlaying();
						game.Playing();
						system("cls");
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						cout<<setw(50)<<"|-------------欢迎使用 Y Tools 1.4工具箱。-----------|"<<endl;
						cout<<setw(50)<<"|-------------本工具箱由kele开发。-----------------|"<<endl;
						cout<<setw(50)<<"|--------输入help或？或帮助以打开帮助--------------|"<<endl;
						cout<<setw(50)<<"|----------------本工具箱持续更新中。--------------|"<<endl;
						cout<<setw(50)<<"|------------------代码托管地址如下----------------|"<<endl;
						cout<<setw(50)<<"|-https://gitee.com/kele2009/Y-tools/tree/master/-|"<<endl;
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						break;
					}
					case 2:
					{
						system("cls");
						cout<<"--------------------贪吃蛇---------------------" << endl;
						cout<<"请先输入两个数,表示地图大小.要求长宽均不小于10." << endl;
						cout<<"请注意窗口大小,以免发生错位.建议将窗口调为最大." << endl;
						cout<<"再选择难度.请在1-10中输入1个数,1最简单,10则最难" << endl;
						cout<<"然后进入游戏画面,以方向键控制方向.祝你游戏愉快!" << endl;
						cout<<"-----------------------------------------------" << endl;
						cin >> m >> n;
						if (m<10 || n<10 || m>25 || n>40)
						{
							cout << "ERROR" << endl;
							system("pause");
						}
						int hard;
						cin >> hard;
						if (hard<=0 || hard>100)
						{
							cout << "ERROR" << endl;
							system("pause");
						}
						/*** 数据全部初始化,包括蛇长,位置,方向 ***/
						snake_length=5;
						clock_t a,b;
						char ch;
						double hard_len;
						for (int i=0;i<=4;i++)
						{
							snake[i].x=1;
							snake[i].y=5-i;
						}
						dir=3;
						/*** 输出初始地图,蛇与食物 ***/
						system("cls");
						hide();
						print_wall();
						print_food();
						print_snake();
						locate(m+2,0);
						cout << "Now length: ";
						/*** 开始游戏 ***/
						while (1)
						{
							/*** 难度随长度增加而提高 ***/
							hard_len=(double)snake_length/(double) (m*n);
							/*** 调节时间,单位是ms ***/
							a=clock();
							while (1)
							{
								b=clock();
								if (b-a>=(int)(400-30*hard)*(1-sqrt(hard_len))) break;
							}
							/*** 接受键盘输入的上下左右,并以此改变方向 ***/
							if (kbhit())
							{
								ch=getch();
								if (ch==-32)
								{
									ch=getch();
									switch(ch)
									{
										case 72:
											if (dir==2 || dir==3)
											dir=0;
											break;
										case 80:
											if (dir==2 || dir==3)
											dir=1;
											break;
										case 75:
											if (dir==0 || dir==1)
											dir=2;
											break;
										case 77:
											if (dir==0 || dir==1)
											dir=3;
											break;
									}
								}
							}
							/*** 前进 ***/
							if (!go_ahead()) break;
							/*** 在最后输出此时长度 ***/
							locate(m+2,12);
							cout<<snake_length;
						}
						system("cls");
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						cout<<setw(50)<<"|-------------欢迎使用 Y Tools 1.4工具箱。-----------|"<<endl;
						cout<<setw(50)<<"|-------------本工具箱由kele开发。-----------------|"<<endl;
						cout<<setw(50)<<"|--------输入help或？或帮助以打开帮助--------------|"<<endl;
						cout<<setw(50)<<"|----------------本工具箱持续更新中。--------------|"<<endl;
						cout<<setw(50)<<"|------------------代码托管地址如下----------------|"<<endl;
						cout<<setw(50)<<"|-https://gitee.com/kele2009/Y-tools/tree/master/-|"<<endl;
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						break;
					}
					case 3:
					{
						minecraft();
						Sleep(5000); 
						system("cls");
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						cout<<setw(50)<<"|-------------欢迎使用 Y Tools 1.4工具箱。-----------|"<<endl;
						cout<<setw(50)<<"|-------------本工具箱由kele开发。-----------------|"<<endl;
						cout<<setw(50)<<"|--------输入help或？或帮助以打开帮助--------------|"<<endl;
						cout<<setw(50)<<"|----------------本工具箱持续更新中。--------------|"<<endl;
						cout<<setw(50)<<"|------------------代码托管地址如下----------------|"<<endl;
						cout<<setw(50)<<"|-https://gitee.com/kele2009/Y-tools/tree/master/-|"<<endl;
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						break;
					}
					case 4:
					{
						mathmx();
						Sleep(5000);
						system("cls");
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						cout<<setw(50)<<"|-------------欢迎使用 Y Tools 1.4工具箱。-----------|"<<endl;
						cout<<setw(50)<<"|-------------本工具箱由kele开发。-----------------|"<<endl;
						cout<<setw(50)<<"|--------输入help或？或帮助以打开帮助--------------|"<<endl;
						cout<<setw(50)<<"|----------------本工具箱持续更新中。--------------|"<<endl;
						cout<<setw(50)<<"|------------------代码托管地址如下----------------|"<<endl;
						cout<<setw(50)<<"|-https://gitee.com/kele2009/Y-tools/tree/master/-|"<<endl;
						cout<<setw(50)<<"|--------------------------------------------------|"<<endl;
						break;
					}
					default:
					{
						cout<<"Not have this game!"<<endl;
					}
				}
				break;
			}
			case 18:
			{
				if(bdl==1||bdl==9) 
				{
					back:
					char back0[20];
					cout<<"变量名？"<<endl;
					cin>>back0;
					if(strcmp(back0,"laod")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>load;
						cout<<"ok!"<<endl;
					}
					if(strcmp(back0,"quit")==0)
					{
						goto kool;
					}
					else if(strcmp(back0,"in1")==0)
					{
						cout<<"这是一个字符类型的变量,请输入字符类的数据:"<<endl;
						cin>>in1;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"ad")==0)
					{
						cout<<"这是一个字符类型的变量,请输入字符类的数据："<<endl;
						cin>>ad;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"adp")==0)
					{
						cout<<"这是一个字符类型的变量,请输入字符类的数据："<<endl;
						cin>>adp;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"cont")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>cont;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"w1")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>w1;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"ne")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>ne;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"pe")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>pe;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"b")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>b;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"open2")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>open2;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"ip1")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>ip1;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"loadn")==0)
					{
						cout<<"这是一个数组类型的数组,请输入数组：(共十位,默认为'0')"<<endl;
						for(int i=1;i<=9;i++)
						{
							cin>>loadn[i];
						}
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"pe")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>pe;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"title")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>title;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"nd")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>nd;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"pd")==0)
					{
						cout<<"这是一个数值类型的数组,请输入数值类的数据："<<endl;
						cin>>pd;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"say")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>say;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"iuse")==0)
					{
						cout<<"这是一个数值类型的数组,请输入数值类的数据："<<endl;
						cin>>iuse;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"inn")==0)
					{
						cout<<"这是一个数值类型的变量,请输入数值类的数据："<<endl;
						cin>>inn;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"va")==0)
					{
						cout<<"这是一个字符串类型的变量,请输入字符串:"<<endl;
						cin>>va;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"ping")==0)
					{
						cout<<"这是一个字符串类型的变量,请输入字符串:"<<endl;
						cin>>ping;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"nowin")==0)
					{
						cout<<"这是一个字符串类型的变量,请输入字符串:"<<endl;
						cin>>nowin;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"innp")==0)
					{
						cout<<"这是一个字符串类型的变量,请输入字符串:"<<endl;
						cin>>innp;
						cout<<"ok!"<<endl;
					}
					else if(strcmp(back0,"帮助")==0)
					{
						char hp[6];
						cout<<"这里有三种类型,请问您要查询哪一种？"<<endl;
						cin>>hp;
						if(strcmp(hp,"数值")==0||strcmp(hp,"1")==0)
						{
							cout<<"数值类有："<<endl<<"		cont,w1,ne,pe,open,b,ip1,title,nd,pd,say,iuse,inn."<<endl; 
						}
						if(strcmp(hp,"字符串")==0||strcmp(hp,"2")==0)
						{
							cout<<"字符串有："<<endl<<"		va[20],ping[17],nowin[20],innp[3]."<<endl; 
						}
						if(strcmp(hp,"数组")==0||strcmp(hp,"3")==0)
						{
							cout<<"数组类有："<<endl<<"		loadn[10]."<<endl; 
						}
						goto back;
					}
					else
					{
						cout<<"没有"<<back0<<"这个变量!"<<endl;
					}
				}
				else
					cout<<"'"<<in1<<"'"<<"不是内部或外部命令!"<<endl;
				break; 
			}
			case 19:
			{
				
				break;
			}
			default:
				cout<<"'"<<in1<<"'"<<"不是内部或外部命令!"<<endl;break; 
		}
		title=title+1;
		if(oicmd==10)
		{
			system("title Y Tools 1.4         	:>	:)	:|	:(	:<");
		}
		else
		{
			switch(title)
			{
				case 1:
					system("title Y Tools 1.4         you can input '?' to have help.");break;
				//case 2:
					//system("title Y Tools 1.4         the math tool,voice assistant,encryption tool and text need load first!");break;
				case 3:
					system("title Y Tools 1.4         you can in put 'help' to have help too.");break;
				case 4:
					system("title Y Tools 1.4         	:>	:)	:|	:(	:<");break;
				case 5:
					system("title Y Toolse 1.4		 oh,you can play a game of 'minecraft' it's good game.");break;
				default:
				{
					system("title htl:Y Toolse 1.4");
					title=0;
					break;
				}
			}
			oicmd++;
		}
	}
	freopen("Y Toolse 1.4.rz","w",stdout);
	//time_t t=time(0);
	strftime(tmp, sizeof(tmp), "%Y/%m/%d %X %A %j %z", localtime(&t));
	cout<<nasd<<tmp<<"	非正常手段关机";
	freopen("text1.txt","w",stdout);
	for(int i=1;i<=rows1;i++)
	{
		cout<<text1[i]<<endl;
	}
	freopen("text2.txt","w",stdout);
	for(int i=1;i<=rows2;i++)
	{
		cout<<text2[i]<<endl;
	}
	return 0;
}
